/*
 * Copyright (c) 2024 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import { Pics } from "../model/APIModel";

export class Constants {
  /**
   * AppStorage key cloud picture path
   */
  static readonly KEY_PICTURE_PATHS: string = 'paths';

  /**
   * File buffer size
   */
  static readonly FILE_BUFFER_SIZE: number = 4096;
}


interface AvPlayerData {
  currentNumber: number,
  totalNumber: number,
  listData: ListData[],
}

interface DataLists {
  code: number,
  msg: string,
  data: string[],
  datas: Pics[],
  total: number,
}

interface Data {
  code: number,
  msg: string,
  total: number,
  data: ListGroupData[]
}

export interface ListGroupData{
  time: string,
  content: string,
}


interface ListData {
  id: string,
  word: string,
  title: string,
  aUrl: string,
  bUrl: string,
}

export const AvPlayerMp3Urls: AvPlayerData = {
  currentNumber: 5,
  totalNumber: 11,
  listData: [
    {
      id: '1',
      word: 'discourage',
      title: 'Song 1',
      aUrl: 'https://truman.fbstatic.cn/english/audio/US_discourage.mp3?sign=Vj1Dic8G7nKeR7VNYQM/CwaEtAhhPTEyNTEwMDE0NDYmaz1BS0lETzNQRUQ3VkV2QkowZWtwR2w3dkZZRUZZaHEyRnFpYUcmZT0yNTI0NTc5MjAwJnQ9MTUzNTczMTIwMCZyPTEyMyZmPS9lbmdsaXNoL2F1ZGlvL1VTX2Rpc2NvdXJhZ2UubXAzJmI9dHJ1bWFu',
      bUrl: 'https://nodestatic-ali.fbstatic.cn/static-files/1664535060210_11410.mp3'
    },
    {
      id: '2',
      word: 'spontaneous',
      title: 'Song 2',
      aUrl: 'https://truman.fbstatic.cn/english/audio/US_spontaneous.mp3?sign=Qa/oaLaVrPRGguVVdXEbb57GIlZhPTEyNTEwMDE0NDYmaz1BS0lETzNQRUQ3VkV2QkowZWtwR2w3dkZZRUZZaHEyRnFpYUcmZT0yNTI0NTc5MjAwJnQ9MTUzNTczMTIwMCZyPTEyMyZmPS9lbmdsaXNoL2F1ZGlvL1VTX3Nwb250YW5lb3VzLm1wMyZiPXRydW1hbg==',
      bUrl: 'https://nodestatic-ali.fbstatic.cn/static-files/1664535164010_12407.mp3'
    },
    {
      id: '3',
      word: 'pollution',
      title: 'Song 3',
      aUrl: 'https://truman.fbstatic.cn/english/audio/US_pollution.mp3?sign=1+8Tp/14OtqW10DP0alNRau2CA1hPTEyNTEwMDE0NDYmaz1BS0lETzNQRUQ3VkV2QkowZWtwR2w3dkZZRUZZaHEyRnFpYUcmZT0yNTI0NTc5MjAwJnQ9MTUzNTczMTIwMCZyPTEyMyZmPS9lbmdsaXNoL2F1ZGlvL1VTX3BvbGx1dGlvbi5tcDMmYj10cnVtYW4=',
      bUrl: 'https://nodestatic-ali.fbstatic.cn/static-files/1664534688679_7913.mp3'
    },
    {
      id: '4',
      word: 'salary',
      title: 'Song 4',
      aUrl: 'https://truman.fbstatic.cn/english/audio/US_salary.mp3?sign=TT57m/JRYAN3GbcqAwePUu6urjphPTEyNTEwMDE0NDYmaz1BS0lETzNQRUQ3VkV2QkowZWtwR2w3dkZZRUZZaHEyRnFpYUcmZT0yNTI0NTc5MjAwJnQ9MTUzNTczMTIwMCZyPTEyMyZmPS9lbmdsaXNoL2F1ZGlvL1VTX3NhbGFyeS5tcDMmYj10cnVtYW4=',
      bUrl: 'https://nodestatic-ali.fbstatic.cn/static-files/1664535041435_11211.mp3'
    },
    {
      id: '5',
      word: 'pretend',
      title: 'Song 5',
      aUrl: 'https://truman.fbstatic.cn/english/audio/US_pretend.mp3?sign=S5TL7g8RBVNiRCpx/ZRQZLOep+FhPTEyNTEwMDE0NDYmaz1BS0lETzNQRUQ3VkV2QkowZWtwR2w3dkZZRUZZaHEyRnFpYUcmZT0yNTI0NTc5MjAwJnQ9MTUzNTczMTIwMCZyPTEyMyZmPS9lbmdsaXNoL2F1ZGlvL1VTX3ByZXRlbmQubXAzJmI9dHJ1bWFu',
      bUrl: 'https://nodestatic-ali.fbstatic.cn/static-files/1664534810795_8888.mp3'
    },
    {
      id: '6',
      word: 'wreck',
      title: 'Song 6',
      aUrl: 'https://truman.fbstatic.cn/english/audio/US_wreck.mp3?sign=m9Or34A3NnBc4phWV2UaltMa97xhPTEyNTEwMDE0NDYmaz1BS0lETzNQRUQ3VkV2QkowZWtwR2w3dkZZRUZZaHEyRnFpYUcmZT0yNTI0NTc5MjAwJnQ9MTUzNTczMTIwMCZyPTEyMyZmPS9lbmdsaXNoL2F1ZGlvL1VTX3dyZWNrLm1wMyZiPXRydW1hbg==',
      bUrl: 'https://nodestatic-ali.fbstatic.cn/static-files/1664534814309_8926.mp3'
    },
    {
      id: '7',
      word: 'tea',
      title: 'Song 7',
      aUrl: 'https://truman.fbstatic.cn/english/audio/US_tea.mp3?sign=2zf+wVKP3TepvmDkg8ugnec/pBJhPTEyNTEwMDE0NDYmaz1BS0lETzNQRUQ3VkV2QkowZWtwR2w3dkZZRUZZaHEyRnFpYUcmZT0yNTI0NTc5MjAwJnQ9MTUzNTczMTIwMCZyPTEyMyZmPS9lbmdsaXNoL2F1ZGlvL1VTX3RlYS5tcDMmYj10cnVtYW4=',
      bUrl: 'https://nodestatic-ali.fbstatic.cn/static-files/1664533955626_2016.mp3"'
    },
    {
      id: '8',
      word: 'drunk',
      title: 'Song 8',
      aUrl: 'https://truman.fbstatic.cn/english/audio/US_drunk.mp3?sign=9rDx8BnZvhgs/0NF/3K9rW7rK4phPTEyNTEwMDE0NDYmaz1BS0lETzNQRUQ3VkV2QkowZWtwR2w3dkZZRUZZaHEyRnFpYUcmZT0yNTI0NTc5MjAwJnQ9MTUzNTczMTIwMCZyPTEyMyZmPS9lbmdsaXNoL2F1ZGlvL1VTX2RydW5rLm1wMyZiPXRydW1hbg==',
      bUrl: 'https://nodestatic-ali.fbstatic.cn/static-files/1664534051873_2804.mp3'
    },
    {
      id: '9',
      word: 'would',
      title: 'Song 9',
      aUrl: 'https://truman.fbstatic.cn/english/audio/US_would.mp3?sign=klR/0zTSLA6O8jeeZIi09AzG+mphPTEyNTEwMDE0NDYmaz1BS0lETzNQRUQ3VkV2QkowZWtwR2w3dkZZRUZZaHEyRnFpYUcmZT0yNTI0NTc5MjAwJnQ9MTUzNTczMTIwMCZyPTEyMyZmPS9lbmdsaXNoL2F1ZGlvL1VTX3dvdWxkLm1wMyZiPXRydW1hbg==',
      bUrl: 'https://nodestatic-ali.fbstatic.cn/static-files/1667888943378_5432240.mp3'
    },
    {
      id: '10',
      word: 'postman',
      title: 'Song 10',
      aUrl: 'https://truman.fbstatic.cn/english/audio/US_postman.mp3?sign=FabkBPDQEYx2jTbbybTuteDVKcBhPTEyNTEwMDE0NDYmaz1BS0lETzNQRUQ3VkV2QkowZWtwR2w3dkZZRUZZaHEyRnFpYUcmZT0yNTI0NTc5MjAwJnQ9MTUzNTczMTIwMCZyPTEyMyZmPS9lbmdsaXNoL2F1ZGlvL1VTX3Bvc3RtYW4ubXAzJmI9dHJ1bWFu',
      bUrl: 'https://nodestatic-ali.fbstatic.cn/static-files/1667809595878_8536242.mp3'
    },
    {
      id: '11',
      word: 'pick',
      title: 'Song 10',
      aUrl: 'https://truman.fbstatic.cn/english/audio/US_pick.mp3?sign=d4QjC9t1WEmQzegPk3wbQoJvmp9hPTEyNTEwMDE0NDYmaz1BS0lETzNQRUQ3VkV2QkowZWtwR2w3dkZZRUZZaHEyRnFpYUcmZT0yNTI0NTc5MjAwJnQ9MTUzNTczMTIwMCZyPTEyMyZmPS9lbmdsaXNoL2F1ZGlvL1VTX3BpY2subXAzJmI9dHJ1bWFu',
      bUrl: 'https://nodestatic-ali.fbstatic.cn/static-files/1667809596069_4091088.mp3'
    }
  ]
};



export const PicsList: DataLists = {
  code: 1,
  msg: '',
  datas: [
    {
      picId: "455962652915712",
      picUrl: "https://hera.fbstatic.cn/455962652915712.jpeg",
      largeUrl: "https://hera.fbstatic.cn/455962652915712.jpeg",
      thumbUrl: "https://hera.fbstatic.cn/455962652915712.jpeg?imageMogr2/thumbnail/!360x360r",
      height: 672,
      width: 1195
    },
    {
      picId: "455962653164544",
      picUrl: "https://hera.fbstatic.cn/455962653164544.jpeg",
      largeUrl: "https://hera.fbstatic.cn/455962653164544.jpeg",
      thumbUrl: "https://hera.fbstatic.cn/455962653164544.jpeg?imageMogr2/thumbnail/!360x360r",
      height: 671,
      width: 1196
    },
    {
      picId: "455962653441024",
      picUrl: "https://hera.fbstatic.cn/455962653441024.jpeg",
      largeUrl: "https://hera.fbstatic.cn/455962653441024.jpeg",
      thumbUrl: "https://hera.fbstatic.cn/455962653441024.jpeg?imageMogr2/thumbnail/!360x360r",
      height: 679,
      width: 1199
    },
    {
      picId: "455962653440000",
      picUrl: "https://hera.fbstatic.cn/455962653440000.jpeg",
      largeUrl: "https://hera.fbstatic.cn/455962653440000.jpeg",
      thumbUrl: "https://hera.fbstatic.cn/455962653440000.jpeg?imageMogr2/thumbnail/!360x360r",
      height: 669,
      width: 1200
    },
    {
      picId: "455962653687808",
      picUrl: "https://hera.fbstatic.cn/455962653687808.jpeg",
      largeUrl: "https://hera.fbstatic.cn/455962653687808.jpeg",
      thumbUrl: "https://hera.fbstatic.cn/455962653687808.jpeg?imageMogr2/thumbnail/!360x360r",
      height: 674,
      width: 1200
    },
    {
      picId: "455962653964288",
      picUrl: "https://hera.fbstatic.cn/455962653964288.jpeg",
      largeUrl: "https://hera.fbstatic.cn/455962653964288.jpeg",
      thumbUrl: "https://hera.fbstatic.cn/455962653964288.jpeg?imageMogr2/thumbnail/!360x360r",
      height: 670,
      width: 1201
    },
    {
      picId: "455962653949952",
      picUrl: "https://hera.fbstatic.cn/455962653949952.jpeg",
      largeUrl: "https://hera.fbstatic.cn/455962653949952.jpeg",
      thumbUrl: "https://hera.fbstatic.cn/455962653949952.jpeg?imageMogr2/thumbnail/!360x360r",
      height: 666,
      width: 1199
    },
    {
      picId: "455962654226432",
      picUrl: "https://hera.fbstatic.cn/455962654226432.jpeg",
      largeUrl: "https://hera.fbstatic.cn/455962654226432.jpeg",
      thumbUrl: "https://hera.fbstatic.cn/455962654226432.jpeg?imageMogr2/thumbnail/!360x360r",
      height: 675,
      width: 1195
    },
    {
      picId: "455962654227456",
      picUrl: "https://hera.fbstatic.cn/455962654227456.jpeg",
      largeUrl: "https://hera.fbstatic.cn/455962654227456.jpeg",
      thumbUrl: "https://hera.fbstatic.cn/455962654227456.jpeg?imageMogr2/thumbnail/!360x360r",
      height: 669,
      width: 1210
    },
    {
      picId: "455962654475264",
      picUrl: "https://hera.fbstatic.cn/455962654475264.jpeg",
      largeUrl: "https://hera.fbstatic.cn/455962654475264.jpeg",
      thumbUrl: "https://hera.fbstatic.cn/455962654475264.jpeg?imageMogr2/thumbnail/!360x360r",
      height: 670,
      width: 1195
    },
    {
      picId: "455962654751744",
      picUrl: "https://hera.fbstatic.cn/455962654751744.jpeg",
      largeUrl: "https://hera.fbstatic.cn/455962654751744.jpeg",
      thumbUrl: "https://hera.fbstatic.cn/455962654751744.jpeg?imageMogr2/thumbnail/!360x360r",
      height: 681,
      width: 1200
    },
    {
      picId: "455962654737409",
      picUrl: "https://hera.fbstatic.cn/455962654737409.jpeg",
      largeUrl: "https://hera.fbstatic.cn/455962654737409.jpeg",
      thumbUrl: "https://hera.fbstatic.cn/455962654737409.jpeg?imageMogr2/thumbnail/!360x360r",
      height: 659,
      width: 1202
    }
  ],
  total: 12,  // 可以调整总数为数据项的数量
  data: [
  // 数据已在datas中，因此不需要重复添加
  ]
};



export const ImageList: DataLists = {
  code: 1,
  msg: '',
  datas: [

  ],
  total: 12,  // 可以调整总数为数据项的数量
  data: [
    "https://hera.fbstatic.cn/455962652915712.jpeg",
    "https://hera.fbstatic.cn/455962653164544.jpeg",
    "https://hera.fbstatic.cn/455962653441024.jpeg",
    "https://hera.fbstatic.cn/455962653440000.jpeg",
    "https://hera.fbstatic.cn/455962653687808.jpeg",
    "https://hera.fbstatic.cn/455962653964288.jpeg",
    "https://hera.fbstatic.cn/455962653949952.jpeg",
    "https://hera.fbstatic.cn/455962654226432.jpeg",
    "https://hera.fbstatic.cn/455962654227456.jpeg",
    "https://hera.fbstatic.cn/455962654475264.jpeg",
    "https://hera.fbstatic.cn/455962654751744.jpeg",
    "https://hera.fbstatic.cn/455962654737409.jpeg"
  ]
};



export const ListGroup: Data = {
  code: 1,
  msg: '',
  total: 12,
  data: [
    {
      time: "2025-01-20 10:48:25",
      content: "【参与有奖】#2025国考#经验征集！\n稿件入选可得100元京东卡！ 本期征集#资料分析#备考经验，请点击👇下方图片了解投稿及参与方式，欢迎大家积极投稿，快来整理技巧，传授经验吧~"
    },
    {
      time: "2025-02-15 14:24:53",
      content: "那些奇奇怪怪，但你又必须要知道的，公文格式大汇总！\n涵盖国联考、自主命题省份近五年真题内容，来看看吧！\n #省考# #申论# #公文写作#"
    },
    {
      time: "2025-01-18 08:23:03",
      content: "离考试越来越近，对自己要求比去年高。\n资料分析一直卡在80%左右，言语还是不稳定，判断推理没有稳定，图推趋势，空间想象力提升了。申论还没有开始复盘去年问题，感觉也没有很大提升。\n越来越怀疑自己，没有那么坚定了，而且因为长期坐着，身体有些问题了。颈椎疼，停止锻炼后，肌肉萎缩。\n看着周边同学步入下一阶段，升职，结婚，旅游，生子。而我还留在原地，困在行测和申论。\n这一年来，我无数次后悔，如果我当时行测做对多一道题，如果我面试再努力一点。很害怕，未来不确定性。\n可是没有如果，休息一下吧，明天会好起来\n夜色难免黑凉，前行必有曙光。"
    },
    {
      time: "2025-01-21 09:15:10",
      content: "【备考技巧】#2025国考#行测高分秘籍！\n分享你的备考经验，赢取丰厚奖品！点击👇下方图片了解详情，快来参与吧！"
    },
    {
      time: "2025-02-16 11:45:30",
      content: "申论写作技巧大揭秘！\n掌握这些技巧，轻松应对#省考# #申论#考试，快来学习吧！"
    },
    {
      time: "2025-01-19 07:30:45",
      content: "备考路上，心态很重要！\n分享你的备考心路历程，赢取精美礼品！点击👇下方图片了解详情，快来参与吧！"
    },
    {
      time: "2025-01-22 08:50:20",
      content: "【备考资料】#2025国考#必备资料大放送！\n点击👇下方图片领取，助你轻松备考！"
    },
    {
      time: "2025-02-17 13:10:15",
      content: "行测高分技巧分享！\n掌握这些技巧，轻松应对#省考# #行测#考试，快来学习吧！"
    },
    {
      time: "2025-01-20 06:40:55",
      content: "备考路上，你不是一个人在战斗！\n分享你的备考故事，赢取丰厚奖品！点击👇下方图片了解详情，快来参与吧！"
    },
    {
      time: "2025-01-23 10:05:40",
      content: "【备考经验】#2025国考#高分经验分享！\n点击👇下方图片了解详情，快来学习吧！"
    }
  ]
};